<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>微信接口配置</title>
    <link rel="stylesheet" href="__LAY__/css/layui.css" media="all">
    <link rel="stylesheet" href="__CSS__/main.css" media="all">
    <style type="text/css">
		.layui-input{
			width:90%;
		}
		.help-block{
			display: block;
			margin-top: 5px;
			margin-bottom: 10px;
			color: #737373;
			/*margin-left: 3.5%;*/
		}
		.hr-line-dashed {
		    border-top: 1px dashed #e7eaec;
		    color: #fff;
		    background-color: #fff;
		    height: 1px;
		    margin: 20px 0;
		}

    </style>
</head>

<body>
	<div class="right_body">
		<div class="body_content">
			<fieldset class="layui-elem-field">
				<legend>微信接口配置</legend>
				<div class="layui-field-box">
				</div>
				<form class="layui-form" action=""  method="post" lay-filter="component-form-group">
					<div class="layui-form-item">
					  <label class="layui-form-label">URL(服务器地址)</label>
					  <div class="layui-input-block">
					    <input type="text" lay-verify="title" autocomplete="off" readonly="readonly" class="layui-input"  value="{:url('@wechat/api','',true,true)}">
					    <p class="help-block">
			                请复制此URL地址填写在公众号平台 [ 开发 >> 基本配置 ] 中 [ URL ( 服务器地址 ) ]
			                <br/><b>注意</b>：URL主域名必需备案，微信服务接口只支持 80 端口 ( http ) 和 443 端口 ( https )
			            </p>
					  </div>
					</div>
			    	<div class="hr-line-dashed"></div>
			    	<div class="layui-form-item">
					  <label class="layui-form-label">AppID(应用ID)</label>
					  <div class="layui-input-block">
					    <input type="text" lay-verType="tips" required lay-verify="required" autocomplete="off" name="wechat_appid" title="请输入以wx开头的18位公众号APPID"  placeholder="公众号APPID（必填）" pattern="^wx[0-9a-z]{16}$" maxlength="18" value="{:sysconf('wechat_appid')}" class="layui-input">
			            <p class="help-block">
			                公众号应用ID是所有接口必要参数，可以在公众号平台 [ 开发 >> 基本配置 ] 页面获取。
			            </p>
					  </div>
					</div>
					<div class="layui-form-item">
					  <label class="layui-form-label">AppSecret(应用密钥)</label>
					  <div class="layui-input-block">
					    <input type="password" lay-verType="tips" required lay-verify="required" name="wechat_appsecret" required="required" title="请输入32位公众号AppSecret" placeholder="公众号AppSecret（必填）" value="{:sysconf('wechat_appsecret')}" maxlength="32" pattern="^[0-9a-z]{32}$" class="layui-input">
			            <p class="help-block">
			                公众号应用密钥是所有接口必要参数，可以在公众号平台 [ 开发 >> 基本配置 ] 页面授权后获取。
			            </p>
					  </div>
					</div>
					<div class="layui-form-item">
					  <label class="layui-form-label">Token(令牌)</label>
					  <div class="layui-input-block">
					    <input type="text" lay-verType="tips" required lay-verify="required" autocomplete="off"  name="wechat_token" required="required" title="请输入接口Token(令牌)" placeholder="Token（令牌）" value="{:sysconf('wechat_token')}" class="layui-input">
			            <p class="help-block">
			                公众号平台与系统对接认证Token，请优先填写此参数并保存，然后再在微信公众号平台操作对接。
			            </p>
					  </div>
					</div>
					<div class="layui-form-item">
					  <label class="layui-form-label">EncodingAESKey</label>
					  <div class="layui-input-block">
					    <input type="text" name="wechat_encodingaeskey" title="请输入43位消息加密密钥" placeholder="消息加密密钥，若开启了消息加密时必需填写（可选）" value="{:sysconf('wechat_encodingaeskey')}" maxlength="43" class="layui-input">
			            <p class="help-block">
			                公众号平台接口设置为加密模式，消息加密密钥必需填写并保持与公众号平台一致。
			            </p>
					  </div>
					</div>
			    <div class="hr-line-dashed"></div>

				<div class="layui-form-item">
				  <div class="layui-input-block">
				    <div class="layui-footer">
				      <button class="layui-btn" lay-submit="" lay-filter="component-form-demo1">立即提交</button>
				    </div>
				  </div>
				</div>

			</form>
			</fieldset>
		</div>
	</div>
</body>
<script type="text/javascript" src="__JS__/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="__LAY__/layui.js"></script>
<script type="text/javascript" src="__JS__/index.js"></script>
<script type="text/javascript" src="__JS__/jquery.form.js"></script>
<script src="https://cdn.bootcss.com/limonte-sweetalert2/7.21.1/sweetalert2.all.js"></script>